<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="http://java.sun.com/jsp/jstl/core"%>

<%@ include file="../../../../header.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link
	href="<%=basePath%>statics/resources/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css"
	rel="stylesheet">
<link href="<%=basePath%>bootstrap/css/bootstrap.min.css"
	rel="stylesheet">

<script
	src="<%=basePath%>statics/resources/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
<script src="<%=basePath%>bootstrap/js/bootstrap.min.js"></script>
<script
	src="<%=basePath%>statics/resources/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
</head>
<body style="align: center;">
	<div style="text-align: center">
		
				<table style=" width: 100%;text-align: center;" id="table">
				<tr > <th>类型</th> <th>开始时间</th> <th>结束时间</th> <th>天数</th> </tr>
				</table>
				
		
	</div>

	<script type="text/javascript">
	

		var api = frameElement.api;
		var operate = api.data.operate;
		var rowid = api.data.rowid;
		var CallBack = api.data.callback;
        
		$.ajax({
			data:{"id":rowid},
			type:"get",
			url:"/askleave/getQinJiaDetail",
			success:function(data){
				for(var i=0;i<data.length;i++){
					var type = data[i].qingJiaTypeId;
					if(type==1083){
						type = "事假";
					}
					else if(type == 1084){
						type = "年假";
					}
					else if(type == 1085){
						type = "病假";
					}
					var temp = '<tr style="margin-top: 25px;"> <td style="font-size: 15px">'+type+'</td> <td style="font-size: 15px">'+data[i].startTime+'</td> <td style="font-size: 15px">'+data[i].endTime+'</td> <td style="font-size: 15px"> '+data[i].days+'</td></tr>';
					$("#table").append(temp);
				}
				
			}
		})

		$(function() {
			initPopBtns();
		})
		function initPopBtns() {
			if ("view" == operate) {
				api.button({
					id : "cancel",
					name : "关闭"
				})
				return;
	    }
		}


		
		
	</script>
</body>
</html>